#include <avr/io.h>

void xram (void) __attribute__((naked,section(".init3")));
void xram (void)
{
	XMCRA = 0;
	XMCRB = (1<<XMBK)|(4<<XMM0);
	MCUCR = (1<<SRE);
	
}

volatile uint8_t array[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };

int main(void)
{
	uint8_t cnt=0;
	
	DDRD = 0xFF;
	
    while(1)
    {
        PORTD = array[cnt++];
    }
}